/*                                                                            */
/* Protea Tools Definitions for Application # 2                               */
/*                                                                            */
/*----------------------------------------------------------------------------*/
/* COPYRIGHT NOTICE                                                           */
/*                                                                            */
/* Copyright (C) 2003, 2004, 2005 eXegeSys, Inc.                              */
/* Copyright (C) 2008 Bruce A. James                                          */
/*                                                                            */
/* This program is part of the Protea Project.                                */
/*                                                                            */
/* The Protea Project is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by the   */
/* Free Software Foundation, either version 3 of the License, or (at your     */
/* option) any later version.                                                 */
/*                                                                            */
/* The Protea Project is distributed in the hope that it will be useful, but  */
/* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY */
/* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License    */
/* for more details.                                                          */
/*                                                                            */
/* You should have received a copy of the GNU General Public License along    */
/* with this program.  If not, see <http://www.gnu.org/licenses/>.            */
/*                                                                            */
/* Please send correspondence to:                                             */
/*                                                                            */
/* theproteaproject@gmail.com                                                 */
/*----------------------------------------------------------------------------*/
/*                                                                            */
/* This file is automatically generated by the makehfile utility.             */
/*                                                                            */
/* Manual changes to this file will be overwritten when makehfile is run.     */
/*                                                                            */

#ifndef __PROTEA_DEFN_2__
#define __PROTEA_DEFN_2__

/**
\file defns2.h
\brief Definition file based on current appdic
*/


namespace ProteaApp2 {
	//
	// Formats Definitions
	//
	const long FMT_PROCESS_INFO = 1;
	const long FMT_MAINTAIN_USER = 2;
	const long FMT_REVALLPROCESS = 3;
	const long FMT_REVALLPROCESS02 = 4;
	const long FMT_SETTRACELEVEL = 5;
	const long FMT_GCS_CONFIG = 6;
	const long FMT_APPL_CONFIG = 7;
	const long FMT_INT_CONFIG = 8;
	const long FMT_PROCESS_DETAIL = 9;
	const long FMT_PROCESS_DETAIL02 = 10;
	const long FMT_REVIEWLICENSE = 11;
	const long FMT_MAINTAIN_GROUP = 12;
	const long FMT_REVIEW_USER = 13;
	const long FMT_DATA_EX = 14;
	const long FMT_USER_GROUP_RELATION = 15;
	const long FMT_REVIEW_APPLICATION = 16;
	const long FMT_REVIEW_APPLICATION_DE = 17;
	const long FMT_REVIEW_APPL_INFO = 18;
	const long FMT_REVIEW_ADMIN_LOGS = 19;
	const long FMT_REVIEW_GENERAL_STATS = 20;
	const long FMT_PREPAPP = 21;
	const long FMT_JOB_SCHEDULE = 22;
	const long FMT_REV_JOB_SCHEDULE = 23;
	const long FMT_MAINTAIN_JOB_SCHEDULE = 24;
	const long FMT_MAINTAIN_JOB_SCH_PARM = 25;
	const long FMT_JOB_SCHEDULE_PARMS = 26;
	const long FMT_SYSTEM_VALUES = 10000;
	const long FMT_LITERAL_10001 = 10001;
	const long FMT_LITERAL_10002 = 10002;
	const long FMT_LITERAL_10003 = 10003;
	const long FMT_LITERAL_10004 = 10004;
	const long FMT_LITERAL_10005 = 10005;
	const long FMT_LITERAL_10006 = 10006;
	const long FMT_LITERAL_10007 = 10007;
	const long FMT_LITERAL_10008 = 10008;
	const long FMT_LITERAL_10009 = 10009;
	const long FMT_LITERAL_10010 = 10010;


	//
	// Field Definitions
	//
	const long FLD_PID = 1;
	const long FLD_HOST_NAME = 2;
	const long FLD_FILE_NAME = 3;
	const long FLD_LISTENER = 4;
	const long FLD_PARENT_PID = 5;
	const long FLD_COMMAND_WINDOW = 6;
	const long FLD_FILTER_TYPE = 7;
	const long FLD_LEVEL_CUTOFF = 8;
	const long FLD_PORT_NBR = 9;
	const long FLD_APPL_NBR = 10;
	const long FLD_TRANS_COMPLETE = 11;
	const long FLD_TRANS_OPEN = 12;
	const long FLD_LAST_CHECK = 13;
	const long FLD_TRANS_STATED = 14;
	const long FLD_MSG_SENT = 15;
	const long FLD_MSG_RECV = 16;
	const long FLD_CPU_TIME = 17;
	const long FLD_TRACING_ON = 18;
	const long FLD_USER_NAME = 22;
	const long FLD_USER_PASSWORD = 23;
	const long FLD_DESCRIPTION = 24;
	const long FLD_GROUP_NAME = 25;
	const long FLD_ALLOW_ALL_DEFLT = 26;
	const long FLD_ERR_TIME = 27;
	const long FLD_INFO_TYPE = 28;
	const long FLD_ERR_NUMBER = 29;
	const long FLD_ERR_FIELD = 30;
	const long FLD_ERR_PID = 31;
	const long FLD_ERR_DESCRIPTION = 32;
	const long FLD_STAT_NAME = 33;
	const long FLD_STAT_VALUE = 34;
	const long FLD_JOB_NAME = 35;
	const long FLD_JOB_DESC = 36;
	const long FLD_JOB_TYPE = 37;
	const long FLD_JOB_PARM = 38;
	const long FLD_JOB_SCHED_DATE = 39;
	const long FLD_JOB_RECUR_MODE = 40;
	const long FLD_JOB_RUN_DATE = 41;
	const long FLD_JOB_STATE = 42;
	const long FLD_JOB_COMP_CODE = 43;
	const long FLD_JOB_RESULT_DATA = 44;
	const long FLD_JOB_SCHED_TIME = 45;
	const long FLD_JOB_RUN_TIME = 46;
	const long FLD_JOB_PARM_NUMBER = 47;
	const long FLD_JOB_PARM_VALUE = 48;


	//
	// Transaction Definitions
	//
	const long TRANS_SHUTDOWN = 6;
	const long TRANS_REVALLPROCESS = 1;
	const long TRANS_SETTRACELEVEL = 2;
	const long TRANS_SETLISTENERPORT = 3;
	const long TRANS_UPDATEAPPL = 4;
	const long TRANS_PROCESSDETAIL = 7;
	const long TRANS_REVIEWLICENSE = 5;
	const long TRANS_REVIEW_USERS = 8;
	const long TRANS_REVIEW_GROUPS = 9;
	const long TRANS_REVIEW_USER = 10;
	const long TRANS_REVIEW_GROUP = 11;
	const long TRANS_REVIEW_APPLICATIONS = 18;
	const long TRANS_REVIEW_APPLICATION = 19;
	const long TRANS_DEL_USER_FROM_GROUP = 16;
	const long TRANS_ADD_USER_TO_GROUP = 17;
	const long TRANS_ADD_GROUP = 12;
	const long TRANS_DEL_GROUP = 13;
	const long TRANS_ADD_USER = 14;
	const long TRANS_DEL_USER = 15;
	const long TRANS_REVIEW_APPL_SUB_ITEM = 20;
	const long TRANS_REVIEW_ADMIN_LOGS = 21;
	const long TRANS_REVIEW_GENERAL_STATS = 22;
	const long TRANS_CHG_USER = 24;
	const long TRANS_PREPAPP = 23;
	const long TRANS_CHG_PASSWORD = 25;
	const long TRANS_ADD_JOB = 26;
	const long TRANS_CHG_JOB = 27;
	const long TRANS_DEL_JOB = 28;
	const long TRANS_REV_JOB_SCHEDULE = 29;
	const long TRANS_REV_JOB_HISTORY = 30;


	//
	// Literal Definitions
	//
	const long LIT_JOB_TYPE_EXTERN = 1;
	const long LIT_JOB_TYPE_TXN = 2;
	const long LIT_JOB_TYPE_PREP = 3;
	const long LIT_RECUR_DAILY = 4;
	const long LIT_RECUR_WEEKLY = 5;
	const long LIT_RECUR_MONTHLY = 6;
	const long LIT_RECUR_YEARLY = 7;
	const long LIT_RECUR_ONCE = 8;
	const long LIT_RECUR_ON_DEMAND = 9;
	const long LIT_STATE_ACTIVE = 10;
	const long LIT_STATE_RUNNING = 11;
	const long LIT_STATE_COMPLETE = 12;
	const long LIT_STATE_PAUSED = 13;


	//
	// System value Definitions
	//


	//
	// Error Definitions
	//
	const long ERR_INV_BUFFER_DEFAULTS = -1000;
	const long ERR_SEVERE_ERROR = -1;
	const long ERR_BAD_SQL_STMT = -10008;
	const long ERR_DATABASE_COLUMN = -10007;
	const long ERR_DB_NONEXISTENT_TABLE = -10006;
	const long ERR_DB_PRIMARY_KEY_VIOLATION = -10005;
	const long ERR_DATABASE = -10004;
	const long ERR_BAD_SQL_COL = -10003;
	const long ERR_INV_SQL_CONS_TYP = -10001;
	const long ERR_INV_SQL_DATA_TYPE = -10000;
	const long ERR_INV_LICENSE = -9000;
	const long ERR_NO_UE_NUMBER = -8002;
	const long ERR_NO_UE_FUNCTION = -8001;
	const long ERR_NO_UE_LIB = -8000;
	const long ERR_NO_APP_DIR = -7000;
	const long ERR_CANNOT_CHANGE_KEY_VALUE = -6002;
	const long ERR_TXN_RETRY = -6001;
	const long ERR_TXN_TIME_OUT = -6000;
	const long ERR_MUST_HAVE_HEADER_BUF = -5103;
	const long ERR_BAD_CHILD_BUFFER = -5102;
	const long ERR_MULT_HEADER_BUF = -5101;
	const long ERR_INV_BUFFER_TYPE = -5100;
	const long ERR_BAD_ARITH_OPER = -5016;
	const long ERR_USER_ID_NOT_SENT = -5015;
	const long ERR_USER_FAIL_SECURITY = -5014;
	const long ERR_LOGIN_FAILED = -5013;
	const long ERR_OS_ERROR_PARM = -5012;
	const long ERR_BAD_BIND = -5011;
	const long ERR_NO_SOCKET = -5010;
	const long ERR_SL_NOT_FOUND = -5009;
	const long ERR_OS_ERROR = -5008;
	const long ERR_SL_ERROR = -5007;
	const long ERR_BAD_DB_LOGIN = -5006;
	const long ERR_BAD_SQL_DATATYPE = -5005;
	const long ERR_BAD_DB_INT = -5004;
	const long ERR_BAD_SQL_TYPE = -5003;
	const long ERR_BAD_TXN = -5002;
	const long ERR_NO_APPLICATION = -5001;
	const long ERR_NO_LICENSES = -5000;
	const long ERR_BAD_XSIROOT = -4000;
	const long ERR_APPLICATION_LOCKED = -3001;
	const long ERR_AUTHORIZATION_FAILURE = -3000;
	const long ERR_NO_DATA_CHANGE = -2000;
	const long ERR_INV_STRING_FIELD = -1723;
	const long ERR_INV_FIELD_DEFAULT = -1722;
	const long ERR_INV_DATE_FIELD = -1721;
	const long ERR_FLD_NOT_FOUND = -1720;
	const long ERR_UNDERFLOW = -1719;
	const long ERR_OVERFLOW = -1718;
	const long ERR_INV_MESSAGE_NAME = -1700;
	const long ERR_CRIT_FIELD_MUST_EXIST = -1501;
	const long ERR_CRIT_VALUE_CHANGE = -1500;
	const long ERR_INVALID_COMPARISON = -1452;
	const long ERR_BLANK_VALUE = -1303;
	const long ERR_INV_LITERAL_VALUE = -1302;
	const long ERR_INV_LIT_VAL_FOR_GROUP = -1301;
	const long ERR_INV_LIT_SCR_TAB_MATCH = -1300;
	const long ERR_INVALID_DURATION = -1299;
	const long ERR_UNSUPPORTED_COMPARISON = -1280;
	const long ERR_INV_BIG_STRING = -1270;
	const long ERR_INV_TIME = -1268;
	const long ERR_HIGH_ORDER_TRUNCATION = -1267;
	const long ERR_TOO_MANY_DIGITS = -1265;
	const long ERR_LESS_THAN_MIN_LENGTH = -1262;
	const long ERR_INV_DATE = -1260;
	const long ERR_INV_ALPHA_STRING = -1256;
	const long ERR_INV_CHAR = -1255;
	const long ERR_INV_NON_NUM = -1252;
	const long ERR_INV_ASCII_DIG = -1216;
	const long ERR_INV_TYPE = -1211;
	const long ERR_FMT_NOT_FOUND = -1210;
	const long ERR_INV_FIELD_NBR = -1209;
	const long ERR_INV_FORMAT_NBR = -1208;
	const long ERR_INV_LITERAL_NBR = -1207;
	const long ERR_INV_FIELD_DEFN = -1205;
	const long ERR_INV_INT_CONV = -1204;
	const long ERR_INV_DEC_DIGIT = -1203;
	const long ERR_INVALID_CONVERSION = -1202;
	const long ERR_INV_TARGET = -1201;
	const long ERR_INV_SOURCE = -1200;
	const long ERR_FIELD_READ_ONLY = -1199;
	const long ERR_REQUIRE_PRIMARY_KEY = -1006;
	const long ERR_HEADER_BUFFER_ORDER = -5104;
	const long ERR_INVALID_PARAMETER = -1100;
	const long ERR_AUTHENTICATION_NOT_SUPPORTED = -5017;
	const long ERR_INVALID_FIELD_DATA = -1220;
	const long ERR_TOO_MANY_USERS = -9001;
	const long ERR_NO_LICENSE_FILE = -9002;
	const long ERR_LICENSE_IS_EXPIRED = -9003;
	const long ERR_PID_NOT_PRESENT = 3;
	const long ERR_PORT_OUT_OF_RANGE = 1;
	const long ERR_CANNOT_BE_BLANK = 2;
	const long ERR_APPL_NOT_PRESENT = 4;
	const long ERR_INT_NOT_PRESENT = 5;
	const long ERR_USER = 30001;
	const long ERR_GROUP = 30002;
	const long ERR_DOESNT_EXIST = 1000;
	const long ERR_ALREADY_EXISTS = 1001;
	const long ERR_APPLICATION = 30003;
	const long ERR_NO_ADMIN_LOG = 6;
	const long ERR_JOB = 30004;
	const long ERR_JOB_STARTED = 100;
	const long ERR_JOB_FAILURE = 101;
	const long ERR_JOB_COMPLETE = 102;
	const long ERR_SYSTEM_START = 7;
	const long ERR_SYSTEM_STOP = 8;


	//
	// User Exit Definitions
	//


};

#endif
